package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type Game struct {
	ID        int       `json:"id"`
	Name      string    `json:"name"`
	NameEN    string    `json:"name_en"`
	Thumb     string    `json:"thumb"`
	URL       string    `json:"url"`
	Status    int32     `json:"status"`
	Sort      int       `json:"sort"`
	CreatedAt time.Time `json:"created_at"`
}

func (Game) TableName() string {
	return fmt.Sprintf("%sgame", models.Prefix)
}
